package com.example.ssm1023.model;

import lombok.Data;

import java.sql.Timestamp;
import java.time.LocalDateTime;

//+--------------+-------------+------+-----+-------------------+----------------+
//| Field        | Type        | Null | Key | Default           | Extra          |
//+--------------+-------------+------+-----+-------------------+----------------+
//| id           | bigint(20)  | NO   | PRI | NULL              | auto_increment |
//| username     | varchar(65) | NO   | UNI | NULL              |                |
//| password     | varchar(65) | NO   |     | NULL              |                |
//| nikename     | varchar(65) | YES  |     | 无名              |                |
//| gender       | tinyint(4)  | YES  |     | 0                 |                |
//| articleCount | int(11)     | YES  |     | 0                 |                |
//| state        | tinyint(4)  | YES  |     | 0                 |                |
//| createtime   | timestamp   | NO   |     | CURRENT_TIMESTAMP |                |
//+--------------+-------------+------+-----+-------------------+----------------+

/**
 * 用户表
 */
@Data
public class User {

    private Integer id;
    private String username;
    private String password;
    private String nikename;
    private byte gender;
    private int articleCount;
    private byte state;
    private LocalDateTime localDateTime;

}
